PLCopen State Machine

This diagram normatively defines according to PLCopenClosed A vendor -and product- independent worldwide association active in Industrial Control and aiming at standardizing PLC file formats based on XML. the behavior of the axis at a high-level when multiple motion controlClosed Motion control is a sub-field of automation, in which the position and/or velocity of machines are controlled using some type of device such as a hydraulic pump, linear actuator, or an electric motor, generally a servo. Motion control is an important part of robotics and CNC machine tools. However, it is more complex than in the use of specialized machines, where the kinematics are usually simpler. The latter is often called General Motion Control (GMC). Motion control is widely used in the packaging, printing, textile, and assembly industries function blocksClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. are simultaneously activated.

The defined seven states are:

Motion State Machine (PLCopen)

Figure 1: Motion State Machine (PLCopen)


Notes

State Machine for Multi-axes Motion Control

The diagram is focused on a single-axis.

  • The multi-axes function blocks (e.g., MC_CamIn, MC_GearIn, or MC_Phasing) can be looked at, from a state diagram point of view, as multiple single-axes all in specific states.
  • Example: The CAM-master can be in the state Continuous Motion.
  • The corresponding slave is in the state Synchronized Motion.
  • Connecting a slave axis to a master axis has no influence on the master axis.

A normal procedure starts in StandStill.

  • In this state the power can be switched on per axis (via the MC_Power command).

The States define the functionality of the function blocks.

Disabled State

The DisabledClosed Removal of the ENABLE signal. Disables power stage. state describes the initial state of the axis.

Disable means power off without error.

  • In this state, the movement of the axis is not influenced by the FBs.
    • The axis feedback is operational.
    • If the MC_Power FB is called with Enable=TRUE while being in Disabled, this leads to either:
      • Standstill if there is no error inside the axis.
      • ErrorStop if an error exists.
    • Calling MC_Power with Enable=FALSE in any state, the axis goes to the state Disabled, either directlyClosed The orientation components of a vector in space. or via any other state.
    • If a motion generating FB controls an axis while the MC_Power FB with Enable=FALSE is called, the motion generating FB is aborted (CommandAborted).

ErrorStop State

The ErrorStop state is the axis goes to a stop, if possible.

From StandStill to Stopping

StandStill is power on without an error.